package com.wtpaint.lib.db.db;

import java.util.List;

/**
 * author:leo
 * desc:面向对象方式封装原生操作数据库的增删该查
 */
public interface IZeusDbDao<T> {

    long insert(T entity);

    long update(T entity, T where);

    int delete(T where);

    List<T> query(T where);

    List<T> query(T where, String orderBy, Integer startIndex, Integer limit);
}
